﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Windows.Forms;

namespace Lin.JSDocument
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //AppDomain.CurrentDomain.AssemblyResolve += (sender, args) =>
            //{

            //    //String resourceName = "AssemblyLoadingAndReflection." +

            //    //   new AssemblyName(args.Name).Name + ".dll";

            //    using (var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("Lin.JSDocument.EcmaScript.NET.modified.dll"))
            //    {

            //        Byte[] assemblyData = new Byte[stream.Length];

            //        stream.Read(assemblyData, 0, assemblyData.Length);

            //        return Assembly.Load(assemblyData);

            //    }

            //};


            Application.Run(new FrmMain());
        }
    }
}
